focus test: Use a GtkText instead
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Feb 2019 20:51:31 +0000 (15:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 19 Feb 2019 05:25:59 +0000 (00:25 -0500)
Thats where the focus is nowadays.

testsuite/gtk/focus.c

index 2884d137b3ffed2a593c37350802dee90f510fb4..0605c8eb5387effb0d212f77f4079e0427fe8aa7 100644 (file)
@@ -12,10 +12,10 @@ test_window_focus (void)
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   gtk_container_add (GTK_CONTAINER (window), box);
   gtk_container_add (GTK_CONTAINER (box), gtk_label_new ("label1"));
-  entry1 = gtk_entry_new ();
+  entry1 = gtk_text_new ();
   gtk_container_add (GTK_CONTAINER (box), entry1);
   gtk_container_add (GTK_CONTAINER (box), gtk_label_new ("label2"));
-  entry2 = gtk_entry_new ();
+  entry2 = gtk_text_new ();
   gtk_container_add (GTK_CONTAINER (box), entry2);
 
   g_assert_null (gtk_window_get_focus (GTK_WINDOW (window)));